home *** CD-ROM | disk | FTP | other *** search
- on showPreview
- global orders, quantlist, totallist
- clearPreview()
- set lineCount to count(orders)
- put "QUANTITY - TITLE - - TOTAL PRICE" into field "Order Field"
- set tmpnum to the number of member "Order Field"
- repeat with i = 1 to lineCount
- set tmpfield to getAt(orders, i)
- set tmpnum to tmpnum + 1
- set tmpcast to the name of member tmpnum
- put tmpfield into field tmpcast
- set tmpquant to tmpquant + getAt(quantlist, i)
- set tmptotal to tmptotal + getAt(totallist, i)
- end repeat
- put "TOTAL CD-ROMs: " & string(tmpquant) & " " & "TOTAL PRICE: $" & string(tmptotal) & ".00" into field "Grand Total"
- updateStage()
- end
-